
function handleStr(daytime){
	var arr = daytime.split("-");
	arr[1] = arr[1].replace(/^0/,"");
	return arr[1]+"月"+arr[2]+"日";
}
var show_list = ["-","09:00","12:00","14:30"];
var show_id = getQueryString("show_id");
var day_time = getQueryString("day_time");
var uname = getQueryString("uname");
var str = "欢迎您在"+handleStr(day_time)+show_list[show_id]+"参观2019广州国际花卉艺术展暨中国插花花艺展。"
var access_token = getQueryString("access_token");
$(".type").text(str);
$(".nametype").find("span").text(uname);
$.ajax({
	method: "get",
	url: api.code,
	timeout: 3000,
	data: {
		show_id: show_id,
		day_time: day_time,
		uname: uname,
		access_token: access_token
	},
	success: function(res) {
		console.log(res);
		var imgUrl = res.data.data;
		$(".save").attr("href", imgUrl)
		$(".twoma").append(`<img style="width:100%;height:100%;" src=${imgUrl} />`)
	}

})
